from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from . import views
router = DefaultRouter()  # 有根路由
router.register(r'course', views.CourseViewSet)
router.register(r'category', views.CategoryViewSet)
router.register(r'label', views.LabelViewSet)
router.register(r'section', views.SectionViewSet)
router.register(r'jie', views.JieViewSet)
router.register(r'mycourse', views.MyCourseViewSet)


urlpatterns = [
    path('attention/', views.AttentionView.as_view)
]

urlpatterns += router.urls


